#include "Priority_queue.h"

//class A
//{
//public:
//	int _a = 0;
//
//	void fun()
//	{
//		cout << _a << endl;
//	}
//private:
//};
//
//int main()
//{
//	A::fun();
//	return 0;
//}

int main()
{
	Priority_queue<int, vector<int>, Greater<int>> hp;
	hp.push(2);
	hp.push(1);
	hp.push(6);
	hp.push(5);
	hp.push(9);
	hp.push(3);
	hp.push(7);

	while (!hp.empty())
	{
		int front = hp.top();
		hp.pop();
		cout << front << " ";
	}
	cout << endl;
	return 0;
}